package com.ufaud.ais.sys.webapp.action;

import java.util.List;

import com.opensymphony.xwork2.ActionSupport;
import com.ufaud.ais.pub.service.IGenericCRUDService;
import com.ufaud.ais.sys.entity.UserEntity;

@Deprecated
public class UserAction extends ActionSupport {

	private Long id;
	private UserEntity user;
	private List<UserEntity> userList;
	private IGenericCRUDService<UserEntity, Long> service;
	
	public String listUsers() {
		userList = service.getAll();
		System.out.println(userList);
		return SUCCESS;
	}
	
	public UserEntity getUser() {
		return user;
	}
	public void setUser(UserEntity user) {
		this.user = user;
	}
	
	public void setService(IGenericCRUDService<UserEntity, Long> service) {
		this.service = service;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public List<UserEntity> getUserList() {
		return userList;
	}
	public void setUserList(List<UserEntity> userList) {
		this.userList = userList;
	}
	
}
